#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.63])
AC_INIT([dnw2], [0.10], [kasimling@gmail.com])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/dnw2.c])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdint.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.

AC_CHECK_LIB(usb,main,,AC_MSG_ERROR(Cannot find libusb ))

# Checks for library functions.
AC_FUNC_MALLOC

AC_OUTPUT([\
		Makefile \
		src/Makefile \
])		

